#! /bin/bash

SOFTWARE=$HOME/bin/software
echo $SOFTWARE
cd $SOFTWARE
git clone git://git.suckless.org/dwm && cd dwm && make clean
curl -O https://dwm.suckless.org/patches/awesomebar/dwm-awesomebar-6.2.diff
curl -O https://dwm.suckless.org/patches/hide_vacant_tags/dwm-hide_vacant_tags-6.2.diff
curl -O https://dwm.suckless.org/patches/vanitygaps/dwm-vanitygaps-20190508-6.2.diff
curl -O https://dwm.suckless.org/patches/autostart/dwm-autostart-20210120-cb3f58a.diff
curl -O https://dwm.suckless.org/patches/scratchpad/dwm-scratchpad-6.2.diff
#状态栏显示多个窗口信息
patch < dwm-awesomebar-20200907-6.2.diff
#隐藏空标签
patch < dwm-hide_vacant_tags-6.2.diff
#窗口间距
patch < dwm-vanitygaps-20190508-6.2.diff
#自动启动脚本
patch < dwm-autostart-20210120-cb3f58a.diff
#临时小窗口
patch < dwm-scratchpad-6.2.diff
make
ln -s $SOFTWARE/dwm/dwm $HOME/bin/dwm
